const { registerLanguageIpcMain } = require('./language/main.js');
const { registerLanguageAPI } = require('./language/preload.js');

function registerIpcMain() {
    registerLanguageIpcMain();
}

function registerIpcRender(contextBridge, ipcRenderer) {
    registerLanguageAPI(contextBridge, ipcRenderer);
}
// CommonJS 导出
module.exports = {
    registerIpcMain,
    registerIpcRender,
    registerLanguageIpcMain,
    registerLanguageAPI
};